package game

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type SafetyKnownRouter struct{}

func (s *SafetyKnownRouter) InitSafetyKnownRouter(Router *gin.RouterGroup) {
	apiRouter := Router.Group("safetyKnown").Use(middleware.OperationRecord())
	{
		apiRouter.POST("getSafetyKnownList", safetyKnownApi.GetSafetyKnownList) // 获取路由组
		apiRouter.POST("createSafetyKnown", safetyKnownApi.CreateSafetyKnown)   // 创建Api
		apiRouter.DELETE("deleteSafetyKnown", safetyKnownApi.DeleteSafetyKnown) // 删除Api
		apiRouter.GET("getSafetyKnown", safetyKnownApi.GetSafetyKnownById)      // 获取单条Api消息
		apiRouter.PUT("updateSafetyKnown", safetyKnownApi.UpdateSafetyKnown)    // 更新api
	}
}
